package com.server.server_a10.entity;


import lombok.Data;

/**
 * 信息类
 * 向物联网发送的信息均遵循这样的消息格式
 */
@Data
public class MqttPushMessage {
    private long home_id;
    private long room_id;
    private int is_open;
    private float temperature;
    private int model;
    private int air_speed;

    public MqttPushMessage(){};
    public MqttPushMessage(long home_id, long room_id, int is_open, float temperature, int model, int air_speed) {
        this.home_id = home_id;
        this.room_id = room_id;
        this.is_open = is_open;
        this.temperature = temperature;
        this.model = model;
        this.air_speed = air_speed;
    }
}
